//
//  BMBaseController.m
//  IntelligentSunglasses
//
//  Created by bosma on 14-4-18.
//  Copyright (c) 2014年 cn.com.bosma. All rights reserved.
//

#import "BMBaseController.h"

@interface BMBaseController ()

@end

@implementation BMBaseController



- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
	[super viewDidLoad];
    
}

//设置导航栏上的标题
- (void)setTitle:(NSString *)title
{
    [super setTitle:title];
    UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectZero];
    titleLabel.textColor = [UIColor blackColor];
    titleLabel.font = [UIFont boldSystemFontOfSize:18.0f];
    titleLabel.backgroundColor = [UIColor clearColor];
    titleLabel.text = title;
    [titleLabel sizeToFit];
    
    self.navigationItem.titleView = titleLabel;

    
}

@end
